import request from './request'

export function toLogin (data) {
  return request({
    url: '/login',
    method: 'post',
    data: data
  })
}

export function register (data) {
  return request({
    url: '/register',
    method: 'post',
    data: data
  })
}

export function userInfo () {
  return request({
    url: '/info'
  })
}
